package com.weayer.controller;

import com.weayer.dto.ResponseResult;
import com.weayer.response.ServiceResponse;
import com.weayer.service.ServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.websocket.server.PathParam;

/**
 * @description: Service服务 - 地图 - 服务管理Controller
 * @author: Weayer
 **/
@RestController
@RequestMapping("/service")
public class ServiceController {
    @Autowired
    private ServiceService trackMapService;

    @PostMapping("/add")
    public ResponseResult<ServiceResponse> add(@PathParam("name") String name){
        return trackMapService.add(name);
    }
}
